package com.typhoon.controller;

import com.typhoon.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shuya | dongfeng.zdf@alibaba-inc.com
 * @description
 * @date 2018/10/15 下午7:50
 * @description
 * @modified by
 * @since V2.0.0
 */
@RestController
@RequestMapping("/user")
public class IndexController {

    @Autowired
    private UserDao userDao;

    @GetMapping("/list")
    public Object list() {
        return this.userDao.listAll();
    }

}
